<template>
  <div>
    <van-empty v-if="status=='0'" image="search" description="暂无数据">
      <van-button round type="danger" class="bottom-button" @click="goBack">返回</van-button>
    </van-empty>
    <van-empty v-if="status=='1'" image="network" description="网络错误">
      <van-button round type="danger" class="bottom-button" @click="goBack">返回</van-button>
    </van-empty>
  </div>
</template>

<script>
import Vue from "vue";
import { Empty } from "vant";
Vue.use(Empty);
export default {
  props: {
    status: {
      type: String,
      default: "0"
    }
  },
  data() {
    return {};
  },
  methods: {
    goBack() {
      this.$router.go(-1);
    }
  }
};
</script>
